package com.base.netlib.javabean

import com.google.gson.annotations.SerializedName

class BaseData<T> {
    @SerializedName(value = "code", alternate = ["status"])
    var code: Int? = null

    @SerializedName(value = "msg", alternate = ["error"])
    var description: String? = null

    @SerializedName(value = "data")
    var data: T? = null
    override fun toString(): String {
        return "BaseData(code=$code, description=$description, data=$data)"
    }
}